package chenshuaiwen.service;

import chenshuaiwen.domain.dto.BaseDto;
import chenshuaiwen.domain.dto.DeptDto;
import chenshuaiwen.domain.entity.BaseEntity;
import chenshuaiwen.domain.entity.Dept;
import chenshuaiwen.domain.vo.Result;

/**
 * 业务层-通用业务接口
 *
 * @author 陈帅闻
 * @since 2025/5/26 11:03
 */
public interface IBaseService<Entity extends BaseEntity,Dto extends BaseDto> {

    boolean existsById(int id);
    Entity findById(int id);
    Result list();
    Result create(Dto dto);
    Result update(Dto dto, int id);
}
